<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<div>


    <form:form commandName="FORM" enctype="multipart/form-data" method="POST">
        <table>
            <tr>
                <td colspan="2" style="color: red;"><form:errors path="*" cssStyle="color : red;"/>
                        ${errors}
                </td>
            </tr>
            <tr>
                <td>Name :</td>
                <td><form:input type="file" path="file"/></td>
            </tr>
            <tr>
                <td colspan="2"><input type="submit" value="Upload File"/></td>
            </tr>
        </table>
    </form:form>


</div>